
module.exports = {
  publicPath: './',
  devServer: {
    proxy: {
      '/api': {
        target: 'http://wj.91sst.com',
        changeOrigin: true,
        pathRewrite: {
          '^/api': '/'
        },
      },
    },
    port: 8090,
    disableHostCheck: true
  },

  chainWebpack: config => {
    // 其他配置
    config.entry('main').add('babel-polyfill') // main是入口js文件
  },
  lintOnSave: false, //禁用eslint
  configureWebpack: config => {
    //打包文件大小配置
    config["performance"] = {
      "maxEntrypointSize": 10000000,
      "maxAssetSize": 30000000
    }
  }


};
